#include "TextFile.h"


Dut::TextFile::TextFile(const std::string& path, const std::string& content)
	:m_Path(path), m_Content(content)
{
}

void Dut::TextFile::Create()const
{

	fs::path _p(m_Path);
	
	if (!fs::exists(_p.parent_path()))
	{
		fs::create_directories(_p.parent_path());
	}


	std::ofstream ofs(m_Path);

	ofs << m_Content;

	ofs.flush();
	ofs.close();

}
